package ratingsetting

// Analysis Model 统计临时表
type RatingSetting struct {
	Id             int     `gorm:"column:id" json:"id"`                          //
	MinDistinguish float32 `gorm:"column:min_distinguish" json:"minDistinguish"` // 最小区间
	MaxDistinguish float32 `gorm:"column:max_distinguish" json:"maxDistinguish"` // 最大区间
	Rating         string  `gorm:"column:rating" json:"rating"`                  // 评级

}

// model init
func New() *RatingSetting {
	return &RatingSetting{}
}

// TableName
func (m *RatingSetting) TableName() string {
	return "rating_setting"
}

func (m *RatingSetting) Mutate(attrs ...RatingSettingAttr) *RatingSetting {
	RatingSettingAttrs(attrs).Apply(m)
	return m
}
